package threadPoolTest;

import org.junit.Test;

public class UceTtest {
    @Test
    public void test() {
        new Thread(null, () -> {
            System.out.println(Thread.currentThread());
        }, "haha").start();
        new Thread(null, () -> {
            System.out.println(Thread.currentThread());
        }, "haha").start();
    }

    public static void main(String[] args) {
        ThreadGroup tg = new ThreadGroup("group");
        new Thread(tg, () -> {
            try {
                Thread.sleep(1000 * 4);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }, "haha").start();
        tg.list();

    }
}
